<%@page import="com.cyou.qb.front.jmx.FrontConstants"%>
<%@page contentType="text/html; charset=UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@taglib prefix="nad" uri="/WEB-INF/tlds/nadTaglib.tld"%>
<%@page import="com.cyou.qb.front.utils.PassportUtils"%>
<%
	response.setHeader("Pragma","no-cache");
	response.setHeader("Cache-Control","no-store");
	response.setDateHeader("Expires",0);
	
	String ctx=request.getContextPath();
	//资源文件的urlPrefix
	String resUrlPrefix=FrontConstants.RES_URL_PREFIX+ctx+"/";
	//一般请求的url
	String postUrlPrefix=FrontConstants.POST_URL_PREFIX+ctx+"/";
	//ajax请求的url
	String ajaxUrlPrefix=FrontConstants.AJAX_URL_PREFIX+ctx+"/";
	boolean loginFlag = PassportUtils.isLogin(request, response);
	request.setAttribute("loginFlag",loginFlag);
	request.setAttribute("resUrlPrefix", resUrlPrefix);
	request.setAttribute("postUrlPrefix",postUrlPrefix);
	request.setAttribute("ajaxUrlPrefix",ajaxUrlPrefix);
%>
<script type="text/javascript">
	var resUrlPrefix="${resUrlPrefix}";
	var postUrlPrefix="${postUrlPrefix}";
	var ajaxUrlPrefix="${ajaxUrlPrefix}";
	var loginFlag="${loginFlag}"
</script>
		